package com.example.shiro.service.impl;

import com.example.shiro.dao.SysUserDao;
import com.example.shiro.entity.SysUser;
import com.example.shiro.service.SysUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUserDao sysUserDao;
    @Override
    public SysUser login(String username) {
        return sysUserDao.login(username);
    }

    @Override
    public SysUser authoriz(String username) {
        return sysUserDao.authoriz(username);
    }

    @Override
    public void add(SysUser sysUser) {
        sysUserDao.add(sysUser);
    }
}
